import org.hibernate.Session;

import com.erpanderp.wam.dbmigration.model.service.DataMigrationEngineDAO;
import com.erpanderp.wam.dbmigration.view.DataMigrationEngineBean;
import com.erpanderp.wam.usm.model.entity.user.Employee;
import com.erpanderp.wam.util.HibernateUtil;


public class Test {
	public static void main(String s[]){
		Session session = HibernateUtil.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		session.get(Employee.class, 1l);
		//new DataMigrationEngineBean().copyTravelMaster();
		new DataMigrationEngineBean().copyTravelMiscExpenseBoarding();
		
		System.out.println("DONE");
		String monthYear = "FEBRUARY 2012";
		System.out.println(monthYear.substring(0, monthYear.length() - 5));
		System.out.println(Integer.parseInt(monthYear.substring(monthYear.length() - 4)));
	}
	
}
